<?php
namespace app\atxunda\model;
use think\Model;
use think\Input;
use think\Cookie;

class AdminLog extends Model
{
	public function createAt($request,$admin_id){
		self::insert([
			'ip' => get_client_ip(),
			'path' => $request->path(),
			'admin_id' => $admin_id,
			'method' => $request->method(),
			'input' => json_encode($request->param()),
			'created_at' => date('Y-m-d H:i:s'),
			'updated_at' => date('Y-m-d H:i:s'),
		]);
	}
}